<head>
	<title>登录成功页面</title>
	<style>
		body {
			width: 1400px;
			height: 700px;
			background-color: #e6f5ff;
		}

		strong {
			color: #1166c2;
		}

		.content {
			width: 700px;
			height: 500px;
			background-color: #f8f8ff;
			border: 5px solid gray;
			font-size: 20px;
			padding: 4px;
			margin: 10px auto;
		}

		h1 {
			color: red;
			width: 175px;
			margin: 5px auto;
			padding: 7px;
			box-sizing: border-box;
		}
	</style>
</head>

<body>

	<div class="content">
		<h1>注册成功</h1>
	</div>

	<script>
		let div = document.querySelector('div');
		let params = location.search.substr(1);
		//多个参数
		let urlParams = new URLSearchParams(params);
		for (let [key, value] of urlParams) {
			div.innerHTML += `<strong>${key}</strong> : <span>${value}</span><br>`;

		}
	</script>
</body>